package com.example.myapplication

import com.example.base.BaseApplication
import com.example.db.util.RoomUtil
import java.util.concurrent.Executors


class ParkApp: BaseApplication(){

    override fun onCreate() {
        super.onCreate()
        initOptions()
    }
    //使用子线程或者线程池初始化耗时操作
    private fun initOptions() {
        //方式一,使用单一线程的线程池
        Executors.newSingleThreadExecutor().run {
            submit{
                RoomUtil.initRoomDataBase(appcontext)
            }
        }



    }
}